package baseClass;

import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Paint.Align;
import android.graphics.Paint.Style;

public class Text
  extends Sprite_Default
{
  public boolean isStroke = false;
  public Paint paint = new Paint();
  public int size;
  public String string;
  public Paint stroke_paint = new Paint();
  
  public Text(int paramInt1, int paramInt2, boolean paramBoolean, int paramInt3)
  {
    super(2130837570, 1, 1, 0.0F, 0.0F);
    this.isStroke = paramBoolean;
    if (Global.GetInstance().dnst_w > Global.GetInstance().dnst_h)
    {
      this.size = ((int)(Global.GetInstance().dnst_h * paramInt1));
      if (this.isStroke)
      {
        this.stroke_paint.setTextSize(this.size);
        this.stroke_paint.setColor(-16777216);
        this.stroke_paint.setTextAlign(Paint.Align.CENTER);
        this.stroke_paint.setTypeface(Global.GetInstance().font);
        this.stroke_paint.setStyle(Paint.Style.STROKE);
        this.stroke_paint.setStrokeWidth((int)(Global.GetInstance().dnst_h * paramInt3));
      }
      this.paint.setTextSize(this.size);
      switch (paramInt2)
      {
      }
    }
    for (;;)
    {
      this.paint.setTextAlign(Paint.Align.CENTER);
      this.paint.setTypeface(Global.GetInstance().font);
      return;
      this.size = ((int)(Global.GetInstance().dnst_w * paramInt1));
      break;
      this.paint.setColor(-1);
      continue;
      this.paint.setColor(-16777216);
    }
  }
  
  public void DrawSprite(Canvas paramCanvas)
  {
    if ((this.string != null) && (this.visible))
    {
      if (this.isStroke) {
        paramCanvas.drawText(this.string, this.position_x * Global.GetInstance().dnst_w, this.position_y * Global.GetInstance().dnst_h, this.stroke_paint);
      }
      paramCanvas.drawText(this.string, this.position_x * Global.GetInstance().dnst_w, this.position_y * Global.GetInstance().dnst_h, this.paint);
    }
  }
}


/* Location:           D:\Tool\AndroidKiller_v1.3.1\projects\petdesigner\ProjectSrc\classes-dex2jar.jar
 * Qualified Name:     baseClass.Text
 * JD-Core Version:    0.7.0.1
 */